package com.uci.scheduleshare;

import com.uci.scheduleshare.calendardb.CalendarDBAdapter;
import android.app.Application;
import android.content.SharedPreferences;

/**
 * CS 190 Spring 2012
 * DBApplication.java
 * Purpose: for setting the global variables
 * so that all the classes can access it.
 * @author Patrick Hsu, Lauren Ko, Pomi Park
 *
 */
public class DBApplication extends Application {
	private CalendarDBAdapter dbAdapter;
	
	/**
	 * Set the adapter
	 * @param dbAdapter
	 */
	public void setDbAdapter(CalendarDBAdapter dbAdapter) {
		this.dbAdapter = dbAdapter;
	}
	
	/**
	 * Get the adapter
	 * @return a CalendarDBAdapter
	 */
	public CalendarDBAdapter getDbAdapter() { 
		return dbAdapter;
	}
	
}
